//
//  SearchCell.m
//  jiyujiaProgram
//
//  Created by SSIC on 16/1/10.
//  Copyright © 2016年 中良 赵. All rights reserved.
//

#import "SearchCell.h"
#import "CSearchModel.h"

@implementation SearchCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setCellWithModel:(NSArray *)model WithIndexPath:(NSIndexPath *)index WithSelect:(BOOL)isTeacher
{
    if (isTeacher) {
        TeacherModel *data = model[index.row];
        self.nameLabel.text = [NSString stringWithFormat:@"教师：%@",data.name];
    }else{
        ScheduleDetailModel *data = model[index.row];
        self.nameLabel.text = [NSString stringWithFormat:@"课程：%@",data.course_name];
    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
